package org.stvd.controller.guide;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.stvd.controller.BaseController;

/**
 * @Title BsFrameworkController
 * @Describtion 项目架构控制类
 * @author houzx
 * @date 2022年6月8日
 */
@Controller
@RequestMapping("guide/framework")
public class BsFrameworkController extends BaseController{

    private String tmpURL = "/guide/framework/";
    
    /**
     * 控制层介绍
     * @return
     */
    @GetMapping(value = "controller")
    public String onControllerLoad() {
        return tmpURL + "ControllerIndex.html";
    }
    
    /**
     * 业务层介绍
     * @return
     */
    @GetMapping(value = "service")
    public String onServiceLoad() {
        return tmpURL + "ServiceIndex.html";
    }
    
    /**
     * 数据层介绍
     * @return
     */
    @GetMapping(value = "dao")
    public String onDaoLoad() {
        return tmpURL + "DaoIndex.html";
    }
    
    /**
     * 实体介绍
     * @return
     */
    @GetMapping(value = "entity")
    public String onEntityLoad() {
        return tmpURL + "EntityIndex.html";
    }
}
